package com.neusoft.hifly.core.pojo;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 常量类
 *
 * @author liuyu
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(value = "KVObject", description = "Map对象")
public class KVObject implements Serializable {

	private static final long serialVersionUID = 5528118856560910975L;

	@ApiModelProperty(value = "键")
	private String key;

	@ApiModelProperty(value = "值")
	private Object val;

	public KVObject() {
	}

	public KVObject(String key, Object val) {
		super();
		this.key = key;
		this.val = val;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Object getVal() {
		return val;
	}

	public void setVal(Object val) {
		this.val = val;
	}

}
